/*
 * @Author: QUAN
 * @Date: 2021-11-04 14:31:02
 * @LastEditTime: 2021-11-05 14:44:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \mutong-ketang-pc-mis\src\FormRuleConf\Comp.js
 */
import Rules from './Rules';

const { COMMON_RULE, LENGTH_RULE } = Rules;

export const compRule = {
  prompt: COMMON_RULE().concat(LENGTH_RULE(1, 15)),
  uid: COMMON_RULE(),
  endTime: COMMON_RULE(),
  shareImage: COMMON_RULE(),
  rewards: [
    {
      type: 'array',
      required: true,
      message: '该项为必填项',
      trigger: 'blur',
    },
  ],
};
